package com.example.message.quartz;

import cn.hutool.core.date.DateUtil;
import java.time.LocalDateTime;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class TestQuartzSyncJob extends QuartzJobBean {

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        System.out.println("1111111111111");
        System.out.println("执行中.......执行时间 = " + DateUtil.format(LocalDateTime.now(), "yyyy-MM-dd HH:mm:ss"));
    }
}
